#include<bits/stdc++.h>
using namespace std;
int main()
{
    freopen("detect.in","r",stdin);
    freopen("detect.out","w",stdout);
    int q,w,e,r,t,y,u,i,o,p,a,s,d,f,g,h,j,k,l,z,x,c,v,b,n;
    cin>>q>>w>>e>>r>>t>>y>>u>>i>>o>>p>>a>>s>>d>>f;
    cin>>g>>h>>j>>k>>l>>z>>x>>c>>v>>b>>n;
    cout<<"3 3";
    return 0;
}
